import {createApp, watch} from 'vue'
import App from './App.vue'
import router from '@/router'
import mitt from "mitt";

import 'amfe-flexible'
import 'element-plus/dist/index.css'
import 'normalize.css'
import '@/assets/style/font/iconfont.css'
import '@/assets/style/reset.css'

import Viewer from "v-viewer";
import 'viewerjs/dist/viewer.css'

// import VConsole from 'vconsole'
// const vConsole = new VConsole()

const app = createApp(App)
app.use(router)
// app.use(vConsole)
app.use(Viewer, {
    defaultOptions: {
        zIndex: 9999,
        toolbar: false,
        transition: false,
        title: false,
        navbar: false,
        scalable: false,
        rotatable: false,
        tooltip: false,
        inline: false,
    }
})
app.config.globalProperties.mittBus = new mitt()
app.mount('#app')
